<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title></title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<link rel="stylesheet" href="css/style.css">
	<script src="lib/js/modernizr-2.0.6.min.js"></script>
	
	
	<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAosWn-FZAKPxQep00YvQy9BS0FkC9-N1FBZNvU2xdwYKOgbmiXhQKSnW0vjf5xc59Oc53MqhudRKNJg"></script>
	<script type="text/javascript">
	google.load("feeds", "1");
    function initialize() {
      var feed = new google.feeds.Feed("http://www.publickey1.jp/atom.xml");
      feed.setNumEntries(10);
      feed.load(function(result) {
        var container = document.getElementById("feed");
        if (!result.error) {
			var a = document.createElement("a");
			a.href = result.feed.link;
            a.appendChild(document.createTextNode(result.feed.title));
            var h1 = document.createElement("h1");
            h1.appendChild(a);
            container.appendChild(h1);
            if (result.feed.entries.length) {
	            var ul = document.createElement("ul");
	            for (var i = 0; i < result.feed.entries.length; i++) {
                    var entry = result.feed.entries[i];
					
					var a = document.createElement("a");
					a.href = entry.link;
		            a.appendChild(document.createTextNode(entry.title));
		            var li = document.createElement("li");
		            li.appendChild(a);
		            li.appendChild(document.createElement("br"));
					var span = document.createElement("span");
					span.class = "content";
		            span.appendChild(document.createTextNode(entry.contentSnippet));
		            li.appendChild(span);
					
		            ul.appendChild(li);
	            }
	            container.appendChild(ul);
            }
       } else {
        var p = document.createElement("p");
        p.appendChild(document.createTextNode('<p>フィードの読み込みに失敗しました。</p>'));
        container.appendChild(p);
       }
      });
    }
    google.setOnLoadCallback(initialize);
	</script>


</head>
<body>

<div id="container">

</div> <!--! end of #container -->

<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script>
<script>window.jQuery || document.write('<script src="lib/js/jquery-1.7.1.min.js"><\/script>')</script>
<script src="lib/js/jquery.i18n.properties-min-1.0.9.js"></script>

<script src="js/common.js"></script>
<script src="js/index.html.js"></script>


<div id="feed">feed</div>


<script>
	var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; // Change UA-XXXXX-X to be your site's ID
	(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
	g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
	s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>
